﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using INSTA_ORM;

namespace INSTA_ORM_UI
{
    class Program
    {
        static void Main(string[] args)
        {
            Player p = new Player(1);
            p.Load();

            //TEST CREATE
            Player player1 = new Player("test", "test", 15, 15, "test");
            Player player2 = new Player("test2", "test2", 30, 30, "test2");

            player1.Save();
            player2.Save();

            //TEST READ
            Player player3 = new Player(1);
            player3.Load();
            int id = player3.Id;
            String name = player3.Name;          
            String position = player3.Position;
            String surname = player3.Surname;
            int number = player3.Number;
            
            //TEST UPDATE
            player3.Surname("toto");
            player3.Save();

            //TEST DELETE
            player3.Delete();

        }
    }
}
